<include file="public@header" />
</head>
<body>
    <div class="layui-fluid">
        <form method="post" class="layui-form js-ajax-form margin-top-20" action="{:url('menu/addPost')}">
            <div class="layui-card">
                <div class="layui-card-header">{:lang('ADMIN_MENU_ADD')}</div>
                <div class="layui-card-body" style="padding:15px;">
                    <div class="layui-form-item">
                        <label for="input-parent_id" class="layui-form-label"><span class="form-required">*</span>上级</label>
                        <div class="layui-input-block">
                            <select name="parent_id" id="input-parent_id">
                                <option value="0">作为一级菜单</option>{$select_category}
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-name" class="layui-form-label"><span class="form-required">*</span>名称</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-name" name="name">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-app" class="layui-form-label"><span class="form-required">*</span>应用</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-app" name="app">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-controller" class="layui-form-label"><span class="form-required">*</span>控制器</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-controller" name="controller">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-action" class="layui-form-label"><span class="form-required">*</span>方法</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-action" name="action">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-param" class="layui-form-label">参数</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-param" name="param">
                            <p class="layui-word-aux">例:id=3&amp;p=3</p>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-icon" class="layui-form-label">图标</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="input-icon" name="icon">
                            <p class="layui-word-aux">
                                <a class="layui-btn layui-btn-xs" href="http://www.thinkcmf.com/font/icons" target="_blank">选择图标</a> 不带前缀fa-，如fa-user => user
                            </p>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-remark" class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" id="input-remark" name="remark"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-status" class="layui-form-label">状态</label>
                        <div class="layui-input-block" id="input-status">
                            <select class="layui-input" name="status">
                                <option value="1">在左侧菜单显示</option>
                                <option value="0">在左侧菜单隐藏</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="input-type" class="layui-form-label">类型</label>
                        <div class="layui-input-block">
                            <select class="layui-input" name="type" id="input-type">
                                <option value="1">有界面可访问菜单</option>
                                <option value="2">无界面可访问菜单</option>
                                <option value="0">只作为菜单</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang('ADD')}</button>
                        <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">{:lang('BACK')}</a>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </form>
    </div>
<include file="public@footer"/>
